<?php
/**
 * Created by PhpStorm.
 * User: xiao
 * Date: 2018/4/13
 * Time: 10:11
 */

namespace App\Http\Service\Api;


use App\Http\Model\Api\User;
use App\Http\Utils\TokenUtils;

class ApiUserService
{


    public static function userInfo()
    {
        $model = new User();
        $model->userInfo();
    }


    public static function login()
    {
        $model = new User();
        return $model->login();
    }

    /**
     * 注册
     * @return array
     */
    public static function register()
    {
        $model = new User();

        // 注册验证码
        // $result = Message::sendCode('18998474573', '852374');

        return $model->register();
    }


    public static function logout()
    {
        return TokenUtils::C();
    }

}